﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
using CoderbitsWinRTAPI;
using System.Threading.Tasks;
using AsyncAssert = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.AppContainer.Assert;

namespace CoderbitsWINRTAPI.UnitTests
{
    [TestClass]
    public class ClientTest
    {
        [TestMethod]
        public void GetProfileTest()
        {
            APIClient client = new APIClient();
            Profile p = client.GetProfile("bit");
            Assert.AreEqual("Bit Munkey", p.name);
        }

        [TestMethod]
        public async Task GetProfileAsyncTest()
        {
            APIClient client = new APIClient();
            Profile p = await client.GetProfileAsync("bit");
            Assert.AreEqual("Bit Munkey", p.name);
        }
    }
}
